import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/addtype',
      component: () => import('../views/HouseTypeAdd.vue'),
    },
    {
      path: '/showtype',
      component: () => import('../views/HouseTypeList.vue'),
    },
    {
      path: '/updatetype',
      component: () => import('../views/UpdateType.vue'),
    },
    {
      path: '/shownum',
      component: () => import('../views/HouseNumberList.vue'),
    },
    {
      path: '/addnum',
      component: () => import('../views/HouseNumberAdd.vue'),
    },
  ],
})

export default router
